class_name CardState
extends Node
# 导出状态变量，作用 在编辑器中分配状态给节点
@export var state: State
# 卡牌状态
enum State {
	BASE,
	CLICKED,
	DRAGGING,
	AIMING,
	RELEASED
}

# 信号：作用 转换起始状态和目标状态
signal transition_requested(from: CardState, to:State)
var card_ui:CardUI

# 进入新状态
func enter() -> void:
	pass

# 退出状态
func exit() -> void:
	pass
	
# 输入事件
func on_input(_event: InputEvent) -> void:
	pass
	
# GUI输入事件
func on_gui_input(_event: InputEvent) -> void:
	pass

# 鼠标进入
func on_mouse_entered()-> void:
	pass
	
# 鼠标退出	
func on_mouse_exited()-> void:
	pass	
